<template>
  <table>
    <tr>
      <td>id</td>
      <td>名称</td>
      <td>操作</td>
    </tr>
    <!-- <ListItem v-for="o in $store.state.datalist" :item="o" :key="o.id"></ListItem> -->
    <ListItem v-for="o in datalist" :item="o" :key="o.id"></ListItem>
  </table>
</template>


<script>
import ListItem from "./ListItem"
import { mapState } from "vuex"
export default {
  computed: {
    fullname(){

    },
    //辅助函数
    ...mapState(['datalist'])
  },

  // computed: mapState({
  //   mydatalist: state => state.datalist
  // }),
  components: {
    ListItem
  }
}
</script>

